﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using PostSharp.Laos;

namespace EntityFrameworkContrib.PostSharp4EF
{
    /// <summary>
    /// interface implemented on business objects that is used for getting to
    /// properties, without reflection.
    /// This interface is implemented at the IL level
    /// </summary>
	public interface IStorageAccess
	{
        /// <summary>
        /// Gets the value.
        /// </summary>
        /// <param name="Propertyname">The propertyname.</param>
        /// <returns></returns>
        object GetValue(string Propertyname);
        /// <summary>
        /// Sets the value.
        /// </summary>
        /// <param name="Propertyname">The propertyname.</param>
        /// <param name="value">The value.</param>
        void SetValue(string Propertyname, object value);
	}
}
